package com.qf.hospital.dto;

import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;
import java.util.Date;

/**
 * @author zjw
 * @description 接收添加患者信息的POJO类
 * @date 2021/10/20 16:04
 */
public class ReportDTO {


    /**
     * 病人姓名
     */
    @NotBlank(message = "患者名称为必传项，岂能为空！")
    private String reportName;

    /**
     * 病人性别
     */
    @NotBlank(message = "患者性别为必传项，岂能为空！")
    private String sex;

    /**
     * 病人年龄
     */
    @NotNull(message = "患者年龄为必传项，岂能为空！")
    @Min(value = 0,message = "患者年龄最小为0岁！")
    @Max(value = 146,message = "患者年龄最大为146岁！")
    private Integer age;

    /**
     * 就诊科室
     */
    @NotNull(message = "所属科室为必填项，岂能为空！")
    private Integer departmentId;

    /**
     * 看诊医生
     */
    @NotNull(message = "看诊医生为必填项，岂能为空！")
    private Integer doctorId;

    /**
     * 挂号类型
     */
    @NotNull(message = "挂号类型为必填项，岂能为空！")
    private Integer registerTypeId;

    /**
     * 挂号价钱
     */
    @NotNull(message = "挂号价钱为必填项，岂能为空！")
    private Double price;


    /**
     * 录入人
     */
    private String users;

    /**
     * 手机号
     */
    @NotBlank(message = "手机号为必填项，岂能为空！")
    private String phone;

    /**
     * 身份号id
     */
    @NotBlank(message = "身份证为必填项，岂能为空！")
    private String carid;

    @Override
    public String toString() {
        return "ReportDTO{" +
                "reportName='" + reportName + '\'' +
                ", sex='" + sex + '\'' +
                ", age=" + age +
                ", departmentId=" + departmentId +
                ", doctorId=" + doctorId +
                ", registerTypeId=" + registerTypeId +
                ", price=" + price +
                ", users='" + users + '\'' +
                ", phone='" + phone + '\'' +
                ", carid='" + carid + '\'' +
                '}';
    }

    public String getReportName() {
        return reportName;
    }

    public void setReportName(String reportName) {
        this.reportName = reportName;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Integer getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(Integer departmentId) {
        this.departmentId = departmentId;
    }

    public Integer getDoctorId() {
        return doctorId;
    }

    public void setDoctorId(Integer doctorId) {
        this.doctorId = doctorId;
    }

    public Integer getRegisterTypeId() {
        return registerTypeId;
    }

    public void setRegisterTypeId(Integer registerTypeId) {
        this.registerTypeId = registerTypeId;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getUsers() {
        return users;
    }

    public void setUsers(String users) {
        this.users = users;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getCarid() {
        return carid;
    }

    public void setCarid(String carid) {
        this.carid = carid;
    }
}
